package no14.classtype;

class Building {
}

class House extends Building {
}

public class Cast {
	public static void main(String[] args) {
		Building b = new House();
		Class<House> houseType=House.class;
		//强制转换成class对象表示的类或接口
		House h = houseType.cast(b);
		
	}
}
